package com.pcbly.web.action.jbpm;

import java.util.List;

import org.jbpm.api.job.Job;

import com.pcbly.web.action.BaseAction;
import com.pcbly.web.business.jbpm.JbpmService;

@SuppressWarnings("unchecked")
public class JbpmJobAction extends BaseAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4227248102246487452L;
	JbpmService jbpmService;
	List<Job> jobs;
	
	
	public List<Job> getJobs() {
		return jobs;
	}
	public void setJobs(List<Job> jobs) {
		this.jobs = jobs;
	}
	public void setJbpmService(JbpmService jbpmService) {
		this.jbpmService = jbpmService;
	}
	public String index() throws Exception {
		jobs=jbpmService.getJobs();
		
		return SUCCESS;
	}
}
